package ${(projectConfig.projectPackageName)!}.controller;

import ${(projectConfig.projectPackageName)!}.base.Result;
import cn.aezo.utils.base.DateU;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/api/open")
public class OpenController {

    @RequestMapping("/hello")
    public Result test() {
        return Result.success("hello minions");
    }

    @RequestMapping("/ping")
    public Result ping() {
        return Result.success(DateU.format(new Date(), "yyyy/MM/dd HH:mm:ss.SSS"));
    }
}